<template>
  <div class="account-setting">

    <div class="security-list">
      <!-- 手机号 -->
      <div class="security-item">
        <div class="item-info">
          <span class="item-label">手机</span>
          <span class="item-value">15*****3992</span>
        </div>
        <el-button type="text" class="item-action">换绑</el-button>
      </div>

      <!-- 微信 -->
      <div class="security-item">
        <div class="item-info">
          <span class="item-label">微信</span>
          <span class="item-value">陌上/顾城落蝶雨</span>
        </div>
        <el-button type="text" class="item-action">解绑</el-button>
      </div>

      <!-- 新浪微博 -->
      <div class="security-item">
        <div class="item-info">
          <span class="item-label">新浪微博</span>
          <span class="item-value">未绑定</span>
        </div>
        <el-button type="text" class="item-action">绑定</el-button>
      </div>

      <!-- GitHub -->
      <div class="security-item">
        <div class="item-info">
          <span class="item-label">GitHub</span>
          <span class="item-value">未绑定</span>
        </div>
        <el-button type="text" class="item-action">绑定</el-button>
      </div>

      <!-- 密码 -->
      <div class="security-item">
        <div class="item-info">
          <span class="item-label">密码</span>
          <span class="item-value"></span>
        </div>
        <el-button type="text" class="item-action">重置</el-button>
      </div>

      <!-- 分隔线 -->
      <el-divider />

      <!-- 账号注销 -->
      <div class="security-item">
        <div class="item-info">
          <span class="item-label">账号注销</span>
          <span class="item-value"></span>
        </div>
        <el-button type="text" class="item-action danger">注销</el-button>
      </div>
    </div>
  </div>
</template>

<script setup>

</script>

<style scoped>
.account-setting {
  max-width: 100vw;
}

.page-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #303133;
}

.security-list {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 0 20px;
}

.security-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #ebeef5;
}

.security-item:last-child {
  border-bottom: none;
}

.item-info {
  display: flex;
  align-items: center;
}

.item-label {
  width: 100px;
  color: #606266;
}

.item-value {
  color: #909399;
}

.item-action {
  color: #409eff;
}

.item-action.danger {
  color: #f56c6c;
}

.el-divider {
  margin: 10px 0;
}
</style>
